package org.tuoren.official.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;
import org.tuoren.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;


/**
 * 产品信息视图对象 t_product
 *
 * @author wl
 * @date 2024-11-26
 */
@Data
@NoArgsConstructor
public class ProductImportVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 产品名称
     */
    @ExcelProperty(value = "产品名称")
    private String name;

    /**
     * 所属产品线
     */
    @ExcelIgnore
    private Long typeId;
    @ExcelProperty(value = "所属产品线")
    private String typeName;

    /**
     * 一句话简介
     */
    @ExcelProperty(value = "一句话简介")
    private String summary;

    /**
     * 规格
     */
    @ExcelProperty(value = "规格")
    private String spec;

    /**
     * 型号
     */
    @ExcelProperty(value = "型号")
    private String model;

    /**
     * 产品介绍
     */
    @ExcelProperty(value = "产品介绍")
    private String describes;

    /**
     * 产品图片URL
     */
    @ExcelProperty(value = "产品图片")
    private MultipartFile photoFile;
    private String photoUrl;
}
